export const queryInputRules = [
  {
    max: 20,
    message: "请输入20个字以内",
  },
];
export const formInputRules = [
  {
    max: 50,
    message: "请输入50个字以内",
  },
];
export const formTextAreaRules = [
  {
    max: 1000,
    message: "请输入1000个字以内",
  },
];
export const phoneRules = [
  {
    validateTrigger: "onBlur",
    pattern: /\d{3}-\d{8}|\d{4}-\d{7}|^1(3[0-9]|4[57]|5[0-35-9]|7[0678]|8[0-9])\d{8}$/,
    message: "电话号码格式不正确",
  },
];
export const numberRules = [
  {
    validateTrigger: "onBlur",
    pattern: /^[0-9]+(.[0-9]{2})?$/,
    message: "必须为至多两位小数的正实数",
  },
];
